#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint
{
	int NO;
	struct watchpoint *next;

	/* TODO: Add more members if necessary */
	bool is_used;
	char expr[100];
	int new_value;
	int old_value;
} WP;

void init_wp_pool();
void sdb_watchpoint_display();

WP *new_wp();
void free_wp(WP *wp);

void create_watchpoint(char *args);
void delete_watchpoint(int no);
bool check_wp();

#endif
